//
//  SettingsDataProvider.m
//  LabanBrowser
//
//  Created by hoangtx on 4/18/13.
//  Copyright (c) 2013 Simon Peter Grätzer. All rights reserved.
//

#import "SettingsDataProvider.h"
#import "MyUtilities.h"
@implementation SettingsDataProvider

-(id)init{
    self = [super init];
    if(self){
        
        self.textSize = @[[MyUtilities getLocalizeStringFromTag:@"Very small"],
                          [MyUtilities getLocalizeStringFromTag:@"Small"],
                          [MyUtilities getLocalizeStringFromTag:@"Normal"],
                          [MyUtilities getLocalizeStringFromTag:@"Big"],
                          [MyUtilities getLocalizeStringFromTag:@"Very big"]];
        self.textSizeValues = @[[NSNumber numberWithInt:80],
                                [NSNumber numberWithInt:90],
                                [NSNumber numberWithInt:100],
                                [NSNumber numberWithInt:110],
                                [NSNumber numberWithInt:120]
                                ];
        
        
        self.defaultZoom = @[[MyUtilities getLocalizeStringFromTag:@"ZoomClose"],
                             [MyUtilities getLocalizeStringFromTag:@"Normal"],
                             [MyUtilities getLocalizeStringFromTag:@"ZoomFar"]];
        
        
        self.userAgents = @[@"Android",@"Desktop",@"iPhone",@"IE",@"Firefox",@"Safari",@"iPad"];
        self.userAgentsValues = @[
                                  @"Mozilla/5.0 (Linux; U; Android 4.0.3; ko-kr; LG-L160L Build/IML74K) AppleWebkit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30", //android
                                  @"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.34 Safari/534.24", // desktop
                                  @"Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8A293 Safari/6531.22.7", // iphone
                                  @"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)", // ie
                                  @"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20100101 Firefox/16.0", //firefox
                                  @"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.21.1 (KHTML, like Gecko) Version/5.0.5 Safari/533.21.1", //safari
                                  @"Mozilla/5.0 (iPad; U; CPU OS 3_2 like Mac OS X; en-us) AppleWebKit/531.21.10 (KHTML, like Gecko) Version/4.0.4 Mobile/7B367 Safari/531.21.10", //iPad
                                  
                                  
                                  ];
        
        self.orientation = @[[MyUtilities getLocalizeStringFromTag:@"Automatically"],
                             [MyUtilities getLocalizeStringFromTag:@"Portrait"],
                             [MyUtilities getLocalizeStringFromTag:@"Landscape"],
                             [MyUtilities getLocalizeStringFromTag:@"LandscapeRight"]
                             ];
        self.orientationValues = @[[NSNumber numberWithInt:UIInterfaceOrientationMaskAllButUpsideDown],
                                   [NSNumber numberWithInt:UIInterfaceOrientationMaskPortrait],
                                   [NSNumber numberWithInt:UIInterfaceOrientationMaskLandscape],
                                   [NSNumber numberWithInt:UIInterfaceOrientationMaskLandscapeRight]
                                   ];
        
        

        
        self.checkUpdates = @[[MyUtilities getLocalizeStringFromTag:@"Everyday"],
                              [MyUtilities getLocalizeStringFromTag:@"OnceAWeek"],
                              [MyUtilities getLocalizeStringFromTag:@"OnceAMonth"]
                              ];
        
                
        self.language = @[
                          @"Tiếng Việt",
                          @"English"
                          ];
        self.languageValues = @[
                                @"vi",
                                @"en"
                                ];
        
    }
    return self;
}

@end
